🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / feature / connections / src / commonMain / kotlin / org / meshtastic / feature / connections / model / DiscoveredDevices.kt
Displaying Raw • Download
feature/connections/src/commonMain/kotlin/org/meshtastic/feature/connections/model/DiscoveredDevices.kt bd2863243bab6eb213401d949839a2bc74dde7e2 (bd286324) Text, 1.98 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.connections.model
Tff7b72import T7ee787kotlinx.coroutines.flow.Flow
Tff7b72import T7ee787org.meshtastic.core.network.repository.DiscoveredService
Tff7b72data Tff7b72class T56d364DiscoveredDevicesTb4b4b4(
Tff7b72val Te6edf3bleDevicesTb4b4b4: Te6edf3ListTff7b72<Te6edf3DeviceListEntryTff7b72> Tff7b72= Te6edf3emptyListTb4b4b4(Tb4b4b4)Tb4b4b4,
Tff7b72val Te6edf3usbDevicesTb4b4b4: Te6edf3ListTff7b72<Te6edf3DeviceListEntryTff7b72> Tff7b72= Te6edf3emptyListTb4b4b4(Tb4b4b4)Tb4b4b4,
Tff7b72val Te6edf3discoveredTcpDevicesTb4b4b4: Te6edf3ListTff7b72<Te6edf3DeviceListEntryTff7b72> Tff7b72= Te6edf3emptyListTb4b4b4(Tb4b4b4)Tb4b4b4,
Tff7b72val Te6edf3recentTcpDevicesTb4b4b4: Te6edf3ListTff7b72<Te6edf3DeviceListEntryTff7b72> Tff7b72= Te6edf3emptyListTb4b4b4(Tb4b4b4)Tb4b4b4,
Tb4b4b4)
Tff7b72interface T56d364GetDiscoveredDevicesUseCase Tb4b4b4{
T8b949e/**
* Returns a flow of all discovered devices (BLE, USB, TCP).
*
* @param showMock whether the Demo Mode gate is open at all.
* @param showReplay whether the replay capture asset ships in this build. Nested inside [showMock] — a replay
* device is never offered on its own, and without the asset the entry would just duplicate Demo Mode.
* @param resolvedList the NSD/mDNS resolved services flow. On Android 15+, subscribing to
* `NetworkRepository.resolvedList` triggers a system consent dialog, so callers should pass `flowOf(emptyList())`
* unless the user has explicitly requested a network scan.
*/
Tff7b72fun Td2a8ffinvokeTb4b4b4(
Te6edf3showMockTb4b4b4: Tffa657BooleanTb4b4b4,
Te6edf3showReplayTb4b4b4: Tffa657BooleanTb4b4b4,
Te6edf3resolvedListTb4b4b4: Te6edf3FlowTff7b72<Te6edf3ListTff7b72<Te6edf3DiscoveredServiceTff7b72>Tff7b72>Tb4b4b4,
Tb4b4b4)Tb4b4b4: Te6edf3FlowTff7b72<Te6edf3DiscoveredDevicesTff7b72>
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.09s